package com.maezia.tdr.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maezia.tdr.dao.mapper.ReportFieldRelMapper;
import com.maezia.tdr.dao.repository.ReportFieldRelRepository;
import com.maezia.tdr.domain.po.ReportFieldRel;
import com.maezia.tdr.service.ReportFieldRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportFieldRelServiceImpl extends ServiceImpl<ReportFieldRelMapper, ReportFieldRel> implements ReportFieldRelService {

    @Autowired
    private ReportFieldRelRepository reportFieldRelRepository;

    @Override
    public List<ReportFieldRel> getByType(String clientId, int code) {
        return reportFieldRelRepository.getByType(clientId, code);
    }
}
